home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / misc / wclass20.zip / VC15HDEX.SCT < prev    next >
Text File  |  1995-01-16  |  5KB  |  139 lines

  1. // Class: CLASS            Visual C++ Windows Exe
  2.  
  3. #ifndef __$TRUNCATE_EIGHT$CLASS$_H  //Required for current class
  4.   #define __$TRUNCATE_EIGHT$CLASS$_H
  5.  
  6. [                               //Required for base classes
  7. #ifndef __$TRUNCATE_EIGHT$BASE_CLASS$_H
  8.   #include "TRUNCATE_EIGHT$BASE_CLASS$.h"
  9. #endif
  10. ]                               
  11.                 
  12. [#include <INCLUDE_FILE>        //Required for include files
  13. ]                               
  14.  
  15. [                               //Required for 1:1 associated classes
  16. #ifndef __$TRUNCATE_EIGHT$ASSOCIATION_ONE_CLASS$_H
  17.   #include "TRUNCATE_EIGHT$ASSOCIATION_ONE_CLASS.h"
  18. #endif
  19. ]                                                               
  20.  
  21. [                               //Required for 1:1 aggregation (part) classes
  22. #ifndef __$TRUNCATE_EIGHT$AGGREGATION_ONE_CLASS$_H
  23.   #include "TRUNCATE_EIGHT$AGGREGATION_ONE_CLASS$.h"
  24. #endif
  25. ]                                                               
  26.  
  27. [                               //Required for 1:M associated classes
  28. #ifndef __$TRUNCATE_EIGHT$ASSOCIATION_MANY_CLASS$_H
  29.   #include "TRUNCATE_EIGHT$ASSOCIATION_MANY_CLASS$.h"
  30. #endif
  31. ]                                                               
  32.  
  33. [                               //Required for 1:M aggregation (part) classes
  34. #ifndef __$TRUNCATE_EIGHT$AGGREGATION_MANY_CLASS$_H
  35.   #include "TRUNCATE_EIGHT$AGGREGATION_MANY_CLASS$.h"
  36. #endif
  37. ]
  38.             
  39. class CLASS[NO_RETURN NO_REPEAT: NO_REPEAT public BASE_CLASS ,DELETE_LAST_SYMBOL] CLASS_LIBRARY_BASE_CLASS     
  40. { [ATTRIBUTE_TYPE ATTRIBUTE_NAME$;]
  41.   [ASSOCIATION_ONE_CLASS$* ASSOCIATION_ONE_NAME$;]
  42.   [AGGREGATION_ONE_CLASS AGGREGATION_ONE_NAME$;]
  43.   [CPtrList ASSOCIATION_MANY_NAME$;]
  44.   [CObList AGGREGATION_MANY_NAME$;]
  45.  
  46. public:
  47.             //Default constructor
  48.             //Update to access base class attributes 
  49.             //Update to access 1:1 part class attributes 
  50.             //Update to access 1:M part class attributes
  51.             //Update to access 1:1 associated class attributes
  52.             //Update to access 1:M associated class attributes
  53.             //Ensure initial values entered
  54.   CLASS () :[NO_RETURN ATTRIBUTE_NAME(ATTRIBUTE_INITIAL_VALUE),DELETE_LAST_SYMBOL]  { } 
  55.  
  56.             //Constructor with arguments
  57.   CLASS ([NO_RETURN ATTRIBUTE_TYPE a$ATTRIBUTE_NAME,DELETE_LAST_SYMBOL] )       
  58.   : [NO_RETURN ATTRIBUTE_NAME (a$ATTRIBUTE_NAME),DELETE_LAST_SYMBOL] { }        
  59.             
  60.   
  61.             //Copy constructor
  62.             //Update to access 1:M part class attributes
  63.             //Update to access 1:1 associated class attributes
  64.             //Update to access 1:M associated class attributes      
  65.   CLASS (const CLASS$& a$CLASS ) [NO_RETURN NO_REPEAT: BASE_CLASS (a$CLASS),DELETE_LAST_SYMBOL]
  66.   { [  ATTRIBUTE_NAME = a$CLASS$.$ATTRIBUTE_NAME;]
  67.     [AGGREGATION_ONE_NAME = a$CLASS$.$AGGREGATION_ONE_NAME;]            
  68.   }                                     
  69.  
  70.             //Operator= Assignment Operator
  71.             //Update to access 1:M part class attributes
  72.             //Update to access 1:1 associated class attributes
  73.             //Update to access 1:M associated class attributes      
  74.   CLASS operator= (const CLASS$& a$CLASS)
  75.   { if (this == &a$CLASS) return *this;          
  76.   [BASE_CLASS$::operator= (a$CLASS);]
  77.   [ATTRIBUTE_NAME = a$CLASS$.$ATTRIBUTE_NAME;]
  78.   [AGGREGATION_ONE_NAME = a$CLASS$.$AGGREGATION_ONE_NAME;]      
  79.   return *this;                                                                                                 
  80.   }                                     
  81.  
  82.             //Operator== Equality Operator
  83.             //Update to access 1:M part class attributes
  84.             //Update to access 1:1 associated class attributes
  85.             //Update to access 1:M associated class attributes      
  86.   int operator== (const CLASS$& a$CLASS)
  87.   { return (
  88. [  (BASE_CLASS$::operator== (a$CLASS)) &&]
  89. [  (AGGREGATION_ONE_NAME == a$CLASS$.$AGGREGATION_ONE_NAME) &&]
  90. [  (ATTRIBUTE_NAME == a$CLASS$.ATTRIBUTE_NAME) &DELETE_LAST_SYMBOL&DELETE_LAST_SYMBOL]
  91.   );
  92.   }                             
  93.     
  94. [                       //Get accessor function for attribute
  95.   ATTRIBUTE_TYPE get$ATTRIBUTE_NAME$() const
  96.   {return ATTRIBUTE_NAME$;
  97.   }
  98. ]                       
  99.             
  100. [                       //Set accessor function for attribute
  101.   void set$ATTRIBUTE_NAME ($ATTRIBUTE_TYPE a$ATTRIBUTE_NAME$)
  102.   { ATTRIBUTE_NAME = a$ATTRIBUTE_NAME$;
  103.   }
  104. ]                       
  105.  
  106. [                       //Get accessor function for 1:1 aggregation
  107.   AGGREGATION_ONE_CLASS$& get$AGGREGATION_ONE_NAME$() 
  108.   {return AGGREGATION_ONE_NAME$;
  109.   }
  110. ]                       
  111.             
  112. [                       //Set accessor function for 1:1 aggregation
  113.   void set$AGGREGATION_ONE_NAME ($AGGREGATION_ONE_CLASS$& a$AGGREGATION_ONE_NAME$)
  114.   { AGGREGATION_ONE_NAME = a$AGGREGATION_ONE_NAME$;
  115.   }
  116. ]                       
  117.  
  118. [                       //Get accessor function for 1:1 association
  119.   ASSOCIATION_ONE_CLASS$* get$ASSOCIATION_ONE_NAME$() const
  120.   {return ASSOCIATION_ONE_NAME$;
  121.   }
  122. ]                       
  123.             
  124. [                       //Set accessor function for 1:1 association
  125.   void set$ASSOCIATION_ONE_NAME ($ASSOCIATION_ONE_CLASS$* a$ASSOCIATION_ONE_NAME$)
  126.   { ASSOCIATION_ONE_NAME = a$ASSOCIATION_ONE_NAME$;
  127.   }
  128. ]
  129.         
  130. [  CPP_OPERATION_VIRTUAL CPP_OPERATION_STATIC OPERATION_RETURN_TYPE OPERATION_NAME (CPP_OPERATION_PARAMETERS) CPP_OPERATION_CONSTANT CPP_OPERATION_PURE_VIRTUAL;
  131.  
  132.   ~ CLASS ( ) { }       //Destructor
  133. };
  134.  
  135. #endif
  136.  
  137.  
  138.